let homeview:Object = {
    state: {
       //侧边栏显示状态
       navBool: false,
       //用户房屋信息
       tableData: [],
       //编辑弹窗显示状态
       dialogVisible: false,
       //编辑框信息
       editForm: {}
    },
    getters: {
    },
    mutations: {
        // 修改state的数据
        SET_NAVBOOL(state:any){
            state.navBool=!state.navBool
        },
        //修改编辑弹窗显示状态
        changeDialog(state: any) {
            state.dialogVisible = !state.dialogVisible
        },
        //编辑框信息
        showEdit(state: any, obj: any) {
            state.editForm = JSON.parse(JSON.stringify(obj))
        },
    },
    actions: {
        SETNAVBOOL(context: any) {
            context.commit('setNavBool')
        },
        HANDLEDELETE(context: any, obj: any) {
            context.commit('handleDelete', obj)
        }
    },
}
export default homeview;